package com.qingmu.club.minaapi.plus.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 魔力拼团主表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MagicGroup extends Model<MagicGroup> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 拼团名称
     */
    private String groupName;

    /**
     * 课程ID
     */
    private String courseId;

    /**
     * 拼团原价价格
     */
    private BigDecimal groupPrice;

    /**
     * 长期有效0-是1-否
     */
    private Integer isAlways;

    /**
     * 开始日期(当不是长期有效1时)
     */
    private Date beginDate;

    /**
     * 结束日期(当不是长期有效1时)
     */
    private Date endDate;

    /**
     * 创建人ID
     */
    private String adminId;

    /**
     * 拼团销售价
     */
    private BigDecimal groupSalePrice;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 所属俱乐部
     */
    private String clubId;

    /**
     * 所属门店ID
     */
    private String shopId;

    /**
     * 是否上架0-下架1-上架
     */
    private Integer isValid;

    /**
     * 是否今日拼团属性0-否1-是
     */
    private Integer isToday;

    /**
     * 是否热门拼团属性0-否1-是
     */
    private Integer isHot;

    /**
     * 拼团形象封面图
     */
    private String cover;


    public static final String ID = "id";

    public static final String GROUP_NAME = "group_name";

    public static final String COURSE_ID = "course_id";

    public static final String GROUP_PRICE = "group_price";

    public static final String IS_ALWAYS = "is_always";

    public static final String BEGIN_DATE = "begin_date";

    public static final String END_DATE = "end_date";

    public static final String ADMIN_ID = "admin_id";

    public static final String GROUP_SALE_PRICE = "group_sale_price";

    public static final String CREATE_TIME = "create_time";

    public static final String CLUB_ID = "club_id";

    public static final String SHOP_ID = "shop_id";

    public static final String IS_VALID = "is_valid";

    public static final String IS_TODAY = "is_today";

    public static final String IS_HOT = "is_hot";

    public static final String COVER = "cover";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
